package Operation;

import book.BookList;

public class ShowOperation implements IOperation{
    public void work(BookList bookList) {
        if(bookList.getUsedSize() == 0) {
            System.out.println("书架为空");
            return;
        }
        for (int i = 0; i < bookList.getUsedSize(); i++) {
            System.out.println(bookList.getBooks()[i]);
        }
    }
}
